#ifndef __CONNECTION_EDITOR
#define __CONNECTION_EDITOR

#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include "TB97Ctls.hpp"
#include "IvDictio.hpp"
#include "IvMulti.hpp"

#define TAG_SRC ((HANDLE)1)
#define TAG_HND ((HANDLE)2)

class TConnectionEditForm : public TForm {
  __published:
        TToolbarButton97 *btnOK;
        TGroupBox *GroupBox1;
        TLabel *Label1;
        TEdit *edtName;
        TLabel *Label4;
        TComboBox *cbHandler;
        TScrollBox *pScroll;
        TLabel *Label2;
        TComboBox *cbSource;
        TCheckBox *chEnabled;
        TIvTranslator *IvTranslator1;
        TLabel *Label3;
        TToolbarButton97 *ToolbarButton971;
        void __fastcall btnOKClick(TObject *Sender);
        void __fastcall idSrcChange(TObject *Sender);
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall FormShow(TObject *Sender);
        void __fastcall cbHandlerChange(TObject *Sender);
        void __fastcall ToolbarButton971Click(TObject *Sender);
  private:
    PMVConnection Connect;

    HDynamicArray Configs;
    PTForm        sForm, hForm;
  public:
    __fastcall TConnectionEditForm( TComponent* Owner, PMVConnection c );

    DEF_PROP_VP( int, nSource, ; )
    DEF_PROP_VP( int, nHandler, ; )
};

#endif
